package com.baoyouqun.domain.CreateCmd;

import com.baoyouqun.domain.Enum.SearchTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class UserSearchRecordCreateCmd implements Serializable {

    private static final long serialVersionUID = 1L;
    // 自定义的查询内容


    @ApiModelProperty(value = "用户ID（关联用户表）")
    private String userId;

    @ApiModelProperty(value = "搜索关键词")
    private String searchKeyword;

    @ApiModelProperty(value = "搜索类型：1-综合，2-找需求，3-找资源，4-找人")
    private SearchTypeEnum searchType;

    @ApiModelProperty(value = "搜索类型")
    private String type;

    @ApiModelProperty(value = "记录创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}